package com.ehome.poct.base.api.dto.device;

import com.ehome.core.entity.DTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class QrCodeHisDetailDTO extends DTO {
    /**
     * 所属批次
     */
    @ApiModelProperty(value = "所属批次")
    private String deviceBatch;
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型 1 金标仪 2 血常规")
    private Integer deviceType;
    /**
     * 设备编号
     */
    @ApiModelProperty(value = "设备编号")
    private String sno;
    @ApiModelProperty(value = "打印日期",required = true)
    private String printDate;

    @ApiModelProperty(value = "开始时间")
    private String startTime;
    @ApiModelProperty(value = "结束时间")
    private String endTime;
    @NotNull
    @Min(
            value = 1L,
            message = "当前页不能小于1"
    )
    @ApiModelProperty(value = "分页")
    private Integer pageIndex;
    @NotNull
    @Max(
            value = 200L,
            message = "每页不能超过200"
    )
    @ApiModelProperty(value = "每页数")
    private Integer pageSize;
}
